
from selenium import webdriver
from web_pom_project.base.KeyWords import  keywords
from web_pom_project.locator.AllPage import *

class LoginPage(keywords):
    def login(self,username,password):
        self.open("http://novel.hctestedu.com/user/login.html")
        self.locator_with_wait(*username_loc).send_keys(username)
        self.locator_with_wait(*password_loc).send_keys(password)
        self.on_click(*loginbtn_loc)

    def get_result_true(self,txt):
        result = self.text_wait(*login_assert_true,txt)
        return result































